<?php
class CenterController extends Controller{
	public function actionSubcenterByCity(){
		$city_name = $_POST['cityname'];
		$ret_subcenter_arr = B2bSubCenter::model()->findAllByAttributes(array("city" => $city_name));
		
		echo json_encode($ret_subcenter_arr);
	}
}
?>